package mer.merController;

import mer.merCommand.UserCommand;
import mer.merModel.UserModel;
import mer.merService.UserService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by yijy on 2017/6/23.
 */
@Controller
@RequestMapping("user")
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * 新增用户
     *
     * @author：yijy
     * @Title: addUser
     * @param @param userCommand
     * @return void
     * @date Apr 14, 2016 11:28:47 AM
     * @throws
     */
    @RequestMapping(value = "/addUser", method = RequestMethod.GET)
    public ModelAndView addUser() {
        ModelAndView modelAndView = new ModelAndView();
        modelAndView.setViewName("test/addUser");
        return modelAndView;
    }

}
